package com.woniu.commentorder.service.serviceImp;

import com.woniu.commentorder.mapper.GoodsMapper;
import com.woniu.commentorder.service.GoodService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class GoodServiceImp implements GoodService {
    @Autowired
    private GoodsMapper goodsMapper;
    @Override
    public void destock(int num, int id) {
        goodsMapper.decreaseStock(num,id);
    }

}
